<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <a href="./red.html" target="main_frame">红色</a>
    <a href="./blue.html" target="main_frame">蓝色</a>

    <hr>

    <!-- 准备一个标签作为网页容器 -->
    <iframe name="main_frame" src="#" frameborder="10" style="width: 400px; height: 400px;"></iframe>
</body>

</html>